﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace LamSon.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewData["Message"] = "Welcome to ASP.NET MVC!";

            return View();
        }

        public ActionResult About()
        {
            return View();
        }
        public ActionResult LoadContentMenu(string menu)
        {
            if (menu == "qltv")
            {
                return PartialView("ThanhVien");
            }
            if (menu == "t")
            {
                return View("Index");
            }
            if (menu == "nkbh")
            {
                return PartialView("NhatKyBanHang");
            }
            if (menu == "nxt")
            {
                return PartialView("NhapXuatTon");
            }
            if (menu == "ch")
            {
                return PartialView("ChuHang");

            }
            if (menu == "kh")
            {
                return PartialView("KhachHang");
            }
            if (menu == "tdn")
            {
                return PartialView("TheoDoiNo");
            }
            if (menu == "cpth")
            {
                return PartialView("ChiPhiTongHop");
            }
            if (menu == "rmn")
            {
                return PartialView("RuongMuoiNha");
            }
            if (menu == "xtb")
            {
                return PartialView("XeTangBo");
            }
            if (menu == "dd")
            {
                return PartialView("DiaDiem");
            }
            return null;
        }
    }
}
